﻿using System;
using System.Runtime.Serialization;

namespace Picnic.Spec
{
	/// <summary>
	/// Represents an exception which should be raised when specification declaration is incorrect.
	/// </summary>
	public class SpecificationException : Exception
	{
		/// <summary>
		/// Creates a new instance of SpecificationException class.
		/// </summary>
		public SpecificationException()
		{
		}

		/// <summary>
		/// Creates a new instance of SpecificationException class.
		/// </summary>
		public SpecificationException(string message)
			: base(message)
		{
		}

		/// <summary>
		/// Creates a new instance of SpecificationException class.
		/// </summary>
		public SpecificationException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		/// <summary>
		/// Creates a new instance of SpecificationException class.
		/// </summary>
		protected SpecificationException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}
	}
}